package com.sun.syndication.feed.module.wcm.types;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * <p>This file is extracted from Websphere Portal 6.1 FeedServiceWCPPlugin.jar
 * 
 * <p>Original class is <code>com.ibm.workplace.feed.plugin.wcm.module.Path</code>
 *
 */
public class Path
    implements Cloneable
{

    public Path(String pLibName, String pPathStr)
    {
        libraryName = pLibName;
        pathStr = pPathStr;
    }

    public String getLibrary()
    {
        return libraryName;
    }

    public void setLibrary(String pLibrary)
    {
        libraryName = pLibrary;
    }

    public String getPathStr()
    {
        return pathStr;
    }

    public void setPathStr(String pPathStr)
    {
        pathStr = pPathStr;
    }

    public List getNodeIdList()
    {
        return nodeDocIds;
    }

    public void setNodeIdList(List p_nodeIds)
    {
        nodeDocIds = p_nodeIds;
    }

    public void appendNodeId(Object p_nodeId)
    {
        if(nodeDocIds == null)
            nodeDocIds = new ArrayList();
        nodeDocIds.add(p_nodeId);
    }

    public Object clone()
        throws CloneNotSupportedException
    {
        Path path = (Path)super.clone();
        return path;
    }

    private String libraryName;
    private String pathStr;
    private List nodeDocIds;
}
